package com.binest.task;

import com.binest.task.service.ITaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * @ClassName: BinestTask
 * @Description:
 * @Author
 * @Date 2024/3/1
 * @Version 1.0
 */

@Component("binestTask")
public class BinestTask {
    @Autowired
    private ITaskService taskService;
    /**
     * 审核词条监听任务
     */
    public void approveTask() throws IOException {
        taskService.approveTask();
    }
    /**
     * 词条领取奖励监听任务
     */
    public void claimTask(){
        taskService.claimTask();
    }
}
